﻿
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/fzYield/fzYield?id=${c1?.id}" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="fzYield" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />

            <label>产品型号：</label>
            <g:select name="part_name" from="${partNameList}" data-width="180" data-toggle="selectpicker" data-live-search="true" optionKey="PART_NAME" optionValue="PART_NAME" value="${part_name}" noSelection="['':'--ALL--']" />&nbsp;
            <label>扩散批号：</label>
            <input name='SUBSTRATE_ID1' value="${SUBSTRATE_ID1}" size="18"/>
            <label>封装形式：</label>
            <input name='RESERVED1' value="${RESERVED1}" size="18"/>
            <label>周别：</label>
            <input name='WEEKS' value="${WEEKS}" size="18"/>
            <br/>
            <label>客户订单：</label>
            <input name='CUSTOMER_ORDER' value="${CUSTOMER_ORDER}" size="18"/>

            <label>开始日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="start-date-input" readonly value="${startTime.format('yyyy-MM-dd HH:mm:ss')}">&nbsp;
            <label>结束日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="end-date-input" readonly value="${endTime.format('yyyy-MM-dd HH:mm:ss')}" >&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/fzYield/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;

        </div>
    </form>
</div>
<g:if test="${fzYield.size > 0}">
<div class="bjui-pageContent">

        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th width="60" rowspan="2">NO.</th>
                <th width="50" rowspan="2">周别</th>
                <th width="100" rowspan="2">扩散批号</th>
                <th width="80" rowspan="2">封装形式</th>
                <th width="150" rowspan="2">产品型号</th>
                <th width="140" rowspan="2">客户订单号</th>
                <th width="100" rowspan="2">订单状态</th>
                <th width="70" rowspan="2">投料</th>
                <th width="150" rowspan="2">投料时间</th>
                <th width="70" rowspan="2">装片流入</th>
                <th width="70" rowspan="2">装片流出</th>
                <th width="70" rowspan="2">装片良率</th>
                <th width="70" rowspan="2">键合流入</th>
                <th width="70" rowspan="2">键合流出</th>
                <th width="70" rowspan="2">键合良率</th>
                <th width="70" rowspan="2">塑封流入</th>
                <th width="70" rowspan="2">塑封流出</th>
                <th width="70" rowspan="2">塑封良率</th>
                <th width="70" rowspan="2">电镀流入</th>
                <th width="70" rowspan="2">电镀流出</th>
                <th width="70" rowspan="2">电镀良率</th>
                <th width="70" rowspan="2">切筋流入</th>
                <th width="70" rowspan="2">切筋流出</th>
                <th width="70" rowspan="2">切筋良率</th>
                <th width="70" rowspan="2">测试流入</th>
                <th width="70" rowspan="2">测试流出</th>
                <th width="70" rowspan="2">测试良率</th>
                <th width="70" colspan="5" align="center">项目</th>
                <th width="70" rowspan="2">外观检流入</th>
                <th width="70" rowspan="2">外观检流出</th>
                <th width="70" rowspan="2">封装良率</th>
                <th width="70" rowspan="2">包装流入</th>
                <th width="70" rowspan="2">包装流出</th>
                <th width="70" rowspan="2">全线合格率</th>
                <th width="70" rowspan="2">入库良品</th>
                <th width="70" rowspan="2">入库不良品</th>
                <th width="70" rowspan="2">备注</th>
                <th width="70" rowspan="2">周记</th>
            </tr>
            <tr>
                <th width="70" >DVDS</th>
                <th width="70" >EAS</th>
                <th width="70" >RG</th>
                <th width="70" >DC-FAIL</th>
                <th width="150" >其它(光检、Cont、O/S)</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${fzYield}" status="i" var="tableInstance">
                <tr>
                    <td width="60">${i+1}</td>
                    <td width="120">${tableInstance.ZB}</td>
                    <td width="150">${tableInstance.SUBSTRATE_ID1}</td>
                    <td width="150">${tableInstance.RESERVED1}</td>
                    <td width="80">${tableInstance.part_name}</td>
                    <td width="100">${tableInstance.CUSTOMER_ORDER}</td>
                    <td width="100">${tableInstance.WORKORDER_STATE}</td>
                    <td width="80">${tableInstance.START_MAIN_QTY}</td>
                    <td width="80">${tableInstance.START_TIME}</td>

                    <td width="70"><g:if test="${tableInstance.A20!=null}">${tableInstance.A10}</g:if></td>
                    <td width="70">${tableInstance.A20}</td>
                    <td width="70">${tableInstance.A20YIELD}<g:if test="${tableInstance.A20YIELD!=null}">%</g:if></td>

                    <td width="70"><g:if test="${tableInstance.A30!=null}">${tableInstance.A20}</g:if></td>
                    <td width="70">${tableInstance.A30}</td>
                    <td width="70">${tableInstance.A30YIELD}<g:if test="${tableInstance.A30YIELD!=null}">%</g:if></td>

                    <td width="70"><g:if test="${tableInstance.A40!=null}">${tableInstance.A30}</g:if></td>
                    <td width="70">${tableInstance.A40}</td>
                    <td width="70">${tableInstance.A40YIELD}<g:if test="${tableInstance.A40YIELD!=null}">%</g:if></td>

                    <td width="70"><g:if test="${tableInstance.A50!=null}">${tableInstance.A40}</g:if></td>
                    <td width="70">${tableInstance.A50}</td>
                    <td width="70">${tableInstance.A50YIELD}<g:if test="${tableInstance.A50YIELD!=null}">%</g:if></td>

                    <td width="70"><g:if test="${tableInstance.A60!=null}">${tableInstance.A50}</g:if></td>
                    <td width="70">${tableInstance.A60}</td>
                    <td width="70">${tableInstance.A60YIELD}<g:if test="${tableInstance.A60YIELD!=null}">%</g:if></td>

                    <td width="70"><g:if test="${tableInstance.T10!=null}">${tableInstance.A60}</g:if></td>
                    <td width="70">${tableInstance.T10}</td>
                    <td width="70">${tableInstance.T10YIELD}<g:if test="${tableInstance.T10YIELD!=null}">%</g:if></td>

                    <td width="70">${tableInstance.DVDS}</td>
                    <td width="70">${tableInstance.EAS}</td>
                    <td width="70">${tableInstance.RG}</td>
                    <td width="70">${tableInstance.DC_FAIL}</td>
                    <td width="70">${tableInstance.OTHER}</td>

                    <td width="70"><g:if test="${tableInstance.T20!=null}">${tableInstance.T10}</g:if></td>

                    <td width="70">${tableInstance.T20}</td>
                    <td width="70">${tableInstance.T20YIELD}<g:if test="${tableInstance.T20YIELD!=null}">%</g:if></td>
                    <td width="70"><g:if test="${tableInstance.T30!=null}">${tableInstance.T20}</g:if></td>
                    <td width="70">${tableInstance.T30}</td>
                    <td width="70">${tableInstance.T30YIELD}<g:if test="${tableInstance.T30YIELD!=null}">%</g:if></td>
                    <td width="70">${tableInstance.GOOD_QTY}</td>
                    <td width="70">${tableInstance.NG_QTY}</td>
                    <td width="70"></td>
                    <td width="70">${tableInstance.RESERVED4}</td>
                </tr>
            </g:each>
            </tbody>
        </table>

</div>
</g:if>
